package com.shinechain.utils;

import com.shinechain.model.BotMethodSwitch;

import java.util.Date;

public class EndGuessThread extends Thread {
    int guessId;
    Date endTime ;
    public EndGuessThread(int guessId, Date endTime){
        this.guessId = guessId;
        this.endTime = endTime;
    }
    @Override
    public void run() {
        try {
            sleep(endTime.getTime()-new Date().getTime());
            BotMethodSwitch.guessId.remove(new Integer(guessId));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
